unit frmInputPwd;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, siComp;

type
  TFormInputPwd = class(TForm)
    Label1: TLabel;
    edtPwd: TEdit;
    btnOK: TButton;
    btnCancel: TButton;
    chkEmpty: TCheckBox;
    siLang: TsiLang;
    procedure chkEmptyClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormInputPwd: TFormInputPwd;

implementation

uses
  frmMain;

{$R *.dfm}

procedure TFormInputPwd.chkEmptyClick(Sender: TObject);
begin
  edtPwd.Enabled := not chkEmpty.Enabled;
  if chkEmpty.Checked then
    edtPwd.Text := EmptyStr;
end;

procedure TFormInputPwd.FormCreate(Sender: TObject);
begin
  siLang.ActiveLanguage := formmain.Config.Language;
end;

end.
